package breakcontinue;

public class BreakDemo {
	public static void main(String[] args) {
		int i = 1;
		switch (i) {
			case 1:
				System.out.println(1);
				break;   // break用来跳出当前switch语句段
			case 2:
				System.out.println(2);
				break;
			case 3:
				System.out.println(3);
				break;
		}
	}
}
